package com.hzeport.bgs22emduty.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.masa.common.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("EMDU_SCREEN_MESSAGE")
@ApiModel(value = "大屏-信息发送记录表")
public class ScreenMessage extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value="关区GUID，源自H4A")
    @TableField(value ="CUSTOM_CODE")
    @JsonProperty(value = "customCode")
    private String customCode;

    @ApiModelProperty(value="关区中文名称")
    @TableField(value ="CUSTOM_NAME")
    @JsonProperty(value = "customName")
    private String customName;

    @ApiModelProperty(value="消息标题")
    @TableField(value ="MESSAGE")
    @JsonProperty(value = "message")
    private String message;

    @ApiModelProperty(value="主体内容")
    @TableField(value ="MAIN_BODY")
    @JsonProperty(value = "mainBody")
    private String mainBody;

    @ApiModelProperty(value="是否已阅：1.是；2.否")
    @TableField(value ="HAS_READED")
    @JsonProperty(value = "hasReaded")
    private String hasReaded;

    @ApiModelProperty(value="发送目标：HZ,ZS")
    @TableField(value ="SEND_TARGET")
    @JsonProperty(value = "sendTarget")
    private String sendTarget;

    @ApiModelProperty(value="阅读人工号")
    @TableField(value ="READ_BY")
    @JsonProperty(value = "readBy")
    private String readBy;

    @ApiModelProperty(value="关联id")
    @TableField(value ="R_ID")
    @JsonProperty(value = "rId")
    private String rId;

    @ApiModelProperty(value="模块")
    @TableField(value ="MODULE")
    @JsonProperty(value = "module")
    private String module;

    @ApiModelProperty(value="所属关区编码")
    @TableField(value ="BELONG_CUSTOM_CODE", exist = false)
    @JsonProperty(value = "beLongCustomCode")
    private String beLongCustomCode;
}
